add_executable(ppserver  ppserver.cpp)
add_executable(ppclient ppclient.cpp)
add_executable(echoclient echoclient.cpp)
add_executable(echoserver echoserver.cpp)
add_executable(timerqueue timerqueue.cpp)

set(NET_TESTS
    ppserver
    ppclient
    echoclient
    echoserver
    timerqueue
)

foreach(T ${NET_TESTS})
   target_link_libraries(
        ${T}
            PRIVATE
                spark-utils
                spark-net
                Threads::Threads
   )
    set_target_properties(
        ${T}
        PROPERTIES
            RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/net_test"
    )
endforeach()